<script type="text/javascript">
    $(document).ready(function() {
        $(".ventana").fancybox({
            'width'		: 390,
            'height'		: 480,
            'autoScale'     	: false,
            'overlayColor'      : '#000',
            'overlayOpacity'    : 0.5,
            'transitionIn'	: 'none',
            'transitionOut'	: 'none',
            'type'		: 'iframe'
        });
    });
</script>
<div id="titulomusica">
    <?php
    echo "<h1>" . $datos['titulo'] . "</h1>";
    ?>
</div>
<?php
if ($datos['incrustable'] == false):
    Flash::error('Esta música no se puede reproducir por estar limitado para tu Pais');
elseif ($datos['privado']):
    Flash::error('Esta Música es privado');
else:
    ?>
    <div>Reproducir:</div>
    <div class="reproductor">
        <div id="elswf">&nbsp;</div>
    </div>
    <script type='text/javascript'>
        jwplayer('elswf').setup({
            'flashplayer': '/swf/player.swf',
            'file': 'http://www.youtube.com/watch?v=<?= $datos['videoId']; ?>',
            'controlbar': 'bottom',
            'width': '470',
            'height': '300'
        });
    </script>
    <script type="text/javascript">
        //swfobject.embedSWF("/swf/tubeplayer.swf", "elswf", "610", "25","9.0.0", "", {videoId: "<?= $datos['videoId']; ?>",autoPlay: "true"}, {wmode: "transparent", menu: "false", quality: "high", bgcolor: "#FFFFFF", allowFullScreen: "true"}, {});
    </script>
<?php endif; ?>
<div class="me-gusta">
    <?php View::partial('web/meGusta', false, array('url' => $url)); ?>
</div>
<div align="center">
    <a href="/popup/descargaYoutube/<?php echo $datos['videoId'] ?>/" class='ventana'><img src="/images/download2.png" alt="Descargar" title="Descargar" style="border:0px;"/></a>
    <a href="/popup/dedicarMusica/<?php echo $datos['titulo'] ?>/DescargaTuMp3/<?= base64_encode($url) ?>" class='ventana'><img src="/images/dedicar2.png" alt="Dedicar M&uacute;sica" title="Dedicar M&uacute;sica" style="border:0px;"/></a>
    <a href="/popup/reportarError/<?php echo $datos['titulo'] ?>/DescargaTuMp3/<?= base64_encode($url) ?>" class='ventana'><img src="/images/report_error.jpg"  alt="Reportar Error" title="Reportar Error" style="border:0px;"/></a>
</div>
<h3>M&uacute;sica Relacionado:</h3>
<div id="music_rel">

</div>
<div style="vertical-align: top;">
<!-- BEGIN SMOWTION TAG - 300x250 - DO NOT MODIFY -->
                            <script type="text/javascript"><!--
                                smowtion_size = "300x250";
                                smowtion_section = "3479186";
                                //-->
                            </script>
                            <script type="text/javascript"
                                    src="http://ads.smowtion.com/ad.js?s=3479186&amp;z=300x250">
                            </script>
                            <!-- END SMOWTION TAG - 300x250 - DO NOT MODIFY -->
</div>
<!-- <embed src="http://www.zonadd.net/video.flash/recursos.web/interfaz.swf" width="320" height="240" allowfullscreen="true" allowscriptaccess="always" flashvars="&displayheight=240&file=LINK DEL ARCHIVO A REPRODUCIR&height=240&image=LINK DE LA IMAGEN&width=320" /> -->
<h3>Escribir Comentario</h3>
<?php
$urlface = 'http://descargatump3.com' . $_SERVER['REQUEST_URI'];
View::partial('web/comentario', false, array('url' => $urlface));
?>